#pragma once

#include "SwordBibleFonts.h"
#include "afxcmn.h"
#include "afxdtctl.h"
#include "AutoRichEditCtrl.h"
#include "MyToolBar.h"
#include "ColorMgr.h"
#include "RangeSet.h"


// CDevotionalPage dialog

class CDevotionalPage : public CPropertyPage
{
	DECLARE_DYNAMIC(CDevotionalPage)

public:
	CDevotionalPage();
	static int staticPageCount;
	CString version;
	sword::SWModule* pModule;
	static CSwordBibleFonts font;
	virtual ~CDevotionalPage();


   CRangeSet tips;

protected:
	CMyToolBar m_wndFormatBar;

// Dialog Data
	enum { IDD = IDD_DEVOTIONALPAGE };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnSize(UINT nType, int cx, int cy);
	virtual BOOL OnInitDialog();
	void showText();
	void CreateTips();
	CDateTimeCtrl m_dateCtrl;
	afx_msg void OnPrint();
	afx_msg void OnDevotionalDisplay();
	afx_msg void OnPreviousDate();
	afx_msg void OnNextDate();
	afx_msg void OnDevotionalCopy();

	BOOL OnToolTipNotify(UINT id, NMHDR *pNMHDR,   LRESULT *pResult);

	BOOL m_devotionStartup;
	afx_msg void OnBnClickedDevotionStartup();

	afx_msg void OnCloseDatepicker(NMHDR *pNMHDR, LRESULT *pResult);
	CAutoRichEditCtrl m_devotionalRich;
	afx_msg void OnEnMsgFilter(NMHDR *pNMHDR, LRESULT *pResult);
};
